/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-20 11:20:48
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-20 15:18:48
 */
//monkey类继承Animal2类，实现ICycleAble和IJumpAble接口
public class Monkey extends Animal2 implements IJumpAble,ICycleAble{
    //成员属性
    private String name;
    public Monkey(){
    }
    public Monkey(String color,int age,String name){
        super(color,age);   
        this.name = name;
    }
    //重写父类继承方法
    @Override
    public void eat(){
        System.out.println("猴子" + name + "吃香蕉");
    }
    @Override
    public void sleep(){
        System.out.println("猴子" + name + "睡懒觉");
    }
    //重写接口获取方法
    @Override
    public void jumpFireCircle(){
        System.out.println("猴子" + name +"能跳火圈");
    }
    @Override
    public void rideBike(){
        System.out.println("猴子" + name +"能骑自行车");
    }
   

}
